<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>站点导航 - 社交圈</title>
    <!-- Bootstrap 5 CSS -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/css/bootstrap.min.css" rel="stylesheet">
    <!-- Font Awesome 图标 -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css">
    
    <style>
        :root {
            --primary: #3b82f6;
            --primary-light: #60a5fa;
            --primary-dark: #2563eb;
            --secondary: #8b5cf6;
            --success: #10b981;
            --warning: #f59e0b;
            --danger: #ef4444;
            --text-primary: #1e293b;
            --text-secondary: #64748b;
            --text-tertiary: #94a3b8;
            --bg-light: #f8fafc;
            --bg-white: #ffffff;
            --bg-secondary: #f1f5f9;
            --border-light: #e2e8f0;
            --border-medium: #cbd5e1;
            --radius: 12px;
            --radius-sm: 8px;
            --shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        }
        
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
            background-color: var(--bg-light);
            color: var(--text-primary);
            padding-top: 56px;
            padding-bottom: 60px;
        }
        
        /* 顶部导航 */
        .top-nav {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 56px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0 16px;
            z-index: 1000;
            border-bottom: 1px solid var(--border-light);
        }
        
        .nav-title {
            font-size: 1.1rem;
            font-weight: 600;
        }
        
        .nav-action {
            color: var(--text-secondary);
            background: none;
            border: none;
            font-size: 1.2rem;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .nav-action:hover {
            background-color: var(--bg-light);
        }
        
        .nav-action.primary {
            color: var(--primary);
        }
        
        /* 主要内容区域 */
        .content-container {
            padding: 16px;
        }
        
        /* 导航分类标题 */
        .nav-category {
            font-size: 1.1rem;
            font-weight: 600;
            margin: 24px 0 12px;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .nav-category i {
            color: var(--primary);
        }
        
        /* 1. 基础导航列表 */
        .basic-nav-list {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }
        
        .basic-nav-item {
            display: flex;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-primary);
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .basic-nav-item:last-child {
            border-bottom: none;
        }
        
        .basic-nav-item:hover {
            background-color: var(--bg-light);
        }
        
        .basic-nav-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
        }
        
        .basic-nav-info {
            flex: 1;
        }
        
        .basic-nav-title {
            font-weight: 500;
            margin-bottom: 2px;
        }
        
        .basic-nav-desc {
            font-size: 0.8rem;
            color: var(--text-secondary);
        }
        
        .basic-nav-arrow {
            color: var(--text-tertiary);
            font-size: 1rem;
        }
        
        /* 2. 图标网格导航 */
        .icon-grid-nav {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 16px;
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 16px;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }
        
        .grid-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            color: var(--text-primary);
        }
        
        .grid-nav-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.2rem;
            margin-bottom: 8px;
        }
        
        .grid-nav-title {
            font-size: 0.8rem;
            text-align: center;
            white-space: nowrap;
        }
        
        /* 3. 带徽章的导航 */
        .badge-nav-list {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }
        
        .badge-nav-item {
            display: flex;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-light);
            color: var(--text-primary);
            text-decoration: none;
            transition: background-color 0.2s;
        }
        
        .badge-nav-item:last-child {
            border-bottom: none;
        }
        
        .badge-nav-item:hover {
            background-color: var(--bg-light);
        }
        
        .badge-nav-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
        }
        
        .badge-nav-info {
            flex: 1;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        .badge-nav-title {
            font-weight: 500;
        }
        
        .nav-badge {
            padding: 2px 8px;
            border-radius: 12px;
            font-size: 0.7rem;
            font-weight: 500;
        }
        
        /* 4. 带开关的导航 */
        .toggle-nav-list {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }
        
        .toggle-nav-item {
            display: flex;
            align-items: center;
            padding: 14px 16px;
            border-bottom: 1px solid var(--border-light);
        }
        
        .toggle-nav-item:last-child {
            border-bottom: none;
        }
        
        .toggle-nav-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 12px;
            flex-shrink: 0;
        }
        
        .toggle-nav-title {
            font-weight: 500;
            flex: 1;
        }
        
        /* 自定义开关样式 */
        .custom-toggle {
            position: relative;
            display: inline-block;
            width: 44px;
            height: 24px;
        }
        
        .custom-toggle input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border-medium);
            transition: .3s;
            border-radius: 24px;
        }
        
        .toggle-slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
        
        input:checked + .toggle-slider {
            background-color: var(--primary);
        }
        
        input:checked + .toggle-slider:before {
            transform: translateX(20px);
        }
        
        /* 5. 分类折叠导航 */
        .collapsible-nav {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            overflow: hidden;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }
        
        .collapsible-nav-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 14px 16px;
            cursor: pointer;
            border-bottom: 1px solid var(--border-light);
        }
        
        .collapsible-nav-title {
            font-weight: 500;
            display: flex;
            align-items: center;
            gap: 12px;
        }
        
        .collapsible-nav-icon {
            width: 36px;
            height: 36px;
            border-radius: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        .collapsible-nav-arrow {
            color: var(--text-tertiary);
            transition: transform 0.3s;
        }
        
        .collapsible-nav-arrow.open {
            transform: rotate(180deg);
        }
        
        .collapsible-nav-content {
            padding: 0 16px;
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.3s ease, padding 0.3s ease;
        }
        
        .collapsible-nav-content.open {
            padding: 12px 16px 16px;
        }
        
        .collapsible-nav-items {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
        }
        
        .collapsible-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 12px 8px;
            background-color: var(--bg-light);
            border-radius: var(--radius-sm);
            text-decoration: none;
            color: var(--text-primary);
            font-size: 0.85rem;
        }
        
        .collapsible-nav-item i {
            margin-bottom: 6px;
            font-size: 1rem;
        }
        
        /* 6. 水平滚动导航 */
        .scroll-nav-container {
            background-color: var(--bg-white);
            border-radius: var(--radius);
            padding: 12px 16px;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }
        
        .scroll-nav-wrapper {
            overflow-x: auto;
            padding-bottom: 4px;
        }
        
        .scroll-nav {
            display: flex;
            gap: 12px;
            width: max-content;
        }
        
        .scroll-nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 8px 14px;
            border-radius: 8px;
            text-decoration: none;
            white-space: nowrap;
        }
        
        .scroll-nav-item.active {
            background-color: var(--primary);
            color: white;
        }
        
        .scroll-nav-item:not(.active) {
            background-color: var(--bg-light);
            color: var(--text-primary);
        }
        
        .scroll-nav-icon {
            font-size: 1.1rem;
            margin-bottom: 4px;
        }
        
        .scroll-nav-title {
            font-size: 0.8rem;
        }
        
        /* 底部导航 */
        .bottom-nav {
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: 60px;
            background-color: var(--bg-white);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-light);
            z-index: 1000;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            font-size: 0.7rem;
            gap: 4px;
            flex: 1;
            height: 100%;
            text-decoration: none;
        }
        
        .nav-item.active {
            color: var(--primary);
        }
        
        .nav-icon {
            font-size: 1.2rem;
        }
        
        /* 提示消息 */
        .toast {
            position: fixed;
            bottom: 80px;
            left: 50%;
            transform: translateX(-50%);
            background-color: rgba(0, 0, 0, 0.7);
            color: white;
            padding: 8px 16px;
            border-radius: 4px;
            z-index: 9999;
            font-size: 0.85rem;
            opacity: 0;
            transition: opacity 0.3s ease;
        }
        
        .toast.show {
            opacity: 1;
        }
    </style>
</head>
<body>
    <!-- 顶部导航 -->
    <div class="top-nav">
        <button class="nav-action" id="backBtn">
            <i class="fas fa-arrow-left"></i>
        </button>
        <div class="nav-title">站点导航</div>
        <button class="nav-action primary" id="settingsBtn">
            <i class="fas fa-cog"></i>
        </button>
    </div>
    
    <!-- 主要内容区域 -->
    <div class="content-container">
        <!-- 基础导航列表 -->
        <h3 class="nav-category">
            <i class="fas fa-list"></i>
            基础导航列表
        </h3>
        <div class="basic-nav-list">
            <a href="#" class="basic-nav-item">
                <div class="basic-nav-icon" style="background-color: rgba(59, 130, 246, 0.1); color: var(--primary);">
                    <i class="fas fa-user"></i>
                </div>
                <div class="basic-nav-info">
                    <div class="basic-nav-title">个人资料</div>
                    <div class="basic-nav-desc">查看和编辑您的个人信息</div>
                </div>
                <i class="fas fa-chevron-right basic-nav-arrow"></i>
            </a>
            <a href="#" class="basic-nav-item">
                <div class="basic-nav-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                    <i class="fas fa-heart"></i>
                </div>
                <div class="basic-nav-info">
                    <div class="basic-nav-title">我的收藏</div>
                    <div class="basic-nav-desc">查看您收藏的内容</div>
                </div>
                <i class="fas fa-chevron-right basic-nav-arrow"></i>
            </a>
            <a href="#" class="basic-nav-item">
                <div class="basic-nav-icon" style="background-color: rgba(16, 185, 129, 0.1); color: var(--success);">
                    <i class="fas fa-clock-rotate-left"></i>
                </div>
                <div class="basic-nav-info">
                    <div class="basic-nav-title">浏览历史</div>
                    <div class="basic-nav-desc">查看您的浏览记录</div>
                </div>
                <i class="fas fa-chevron-right basic-nav-arrow"></i>
            </a>
            <a href="#" class="basic-nav-item">
                <div class="basic-nav-icon" style="background-color: rgba(245, 158, 11, 0.1); color: var(--warning);">
                    <i class="fas fa-cog"></i>
                </div>
                <div class="basic-nav-info">
                    <div class="basic-nav-title">账号设置</div>
                    <div class="basic-nav-desc">隐私、安全和通知设置</div>
                </div>
                <i class="fas fa-chevron-right basic-nav-arrow"></i>
            </a>
        </div>
        
        <!-- 图标网格导航 -->
        <h3 class="nav-category">
            <i class="fas fa-th"></i>
            快捷功能导航
        </h3>
        <div class="icon-grid-nav">
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(59, 130, 246, 0.1); color: var(--primary);">
                    <i class="fas fa-user-plus"></i>
                </div>
                <span class="grid-nav-title">添加好友</span>
            </a>
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                    <i class="fas fa-image"></i>
                </div>
                <span class="grid-nav-title">发布图片</span>
            </a>
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(16, 185, 129, 0.1); color: var(--success);">
                    <i class="fas fa-comment"></i>
                </div>
                <span class="grid-nav-title">消息中心</span>
            </a>
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(245, 158, 11, 0.1); color: var(--warning);">
                    <i class="fas fa-bell"></i>
                </div>
                <span class="grid-nav-title">通知</span>
            </a>
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(239, 68, 68, 0.1); color: var(--danger);">
                    <i class="fas fa-shopping-cart"></i>
                </div>
                <span class="grid-nav-title">商城</span>
            </a>
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(59, 130, 246, 0.1); color: var(--primary);">
                    <i class="fas fa-map-marker-alt"></i>
                </div>
                <span class="grid-nav-title">附近</span>
            </a>
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                    <i class="fas fa-calendar"></i>
                </div>
                <span class="grid-nav-title">活动</span>
            </a>
            <a href="#" class="grid-nav-item">
                <div class="grid-nav-icon" style="background-color: rgba(16, 185, 129, 0.1); color: var(--success);">
                    <i class="fas fa-question-circle"></i>
                </div>
                <span class="grid-nav-title">帮助</span>
            </a>
        </div>
        
        <!-- 带徽章的导航 -->
        <h3 class="nav-category">
            <i class="fas fa-tag"></i>
            带徽章的导航
        </h3>
        <div class="badge-nav-list">
            <a href="#" class="badge-nav-item">
                <div class="badge-nav-icon" style="background-color: rgba(59, 130, 246, 0.1); color: var(--primary);">
                    <i class="fas fa-envelope"></i>
                </div>
                <div class="badge-nav-info">
                    <div class="badge-nav-title">私信</div>
                    <span class="nav-badge" style="background-color: rgba(239, 68, 68, 0.1); color: var(--danger);">8</span>
                </div>
            </a>
            <a href="#" class="badge-nav-item">
                <div class="badge-nav-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                    <i class="fas fa-bell"></i>
                </div>
                <div class="badge-nav-info">
                    <div class="badge-nav-title">系统通知</div>
                    <span class="nav-badge" style="background-color: rgba(245, 158, 11, 0.1); color: var(--warning);">12</span>
                </div>
            </a>
            <a href="#" class="badge-nav-item">
                <div class="badge-nav-icon" style="background-color: rgba(16, 185, 129, 0.1); color: var(--success);">
                    <i class="fas fa-users"></i>
                </div>
                <div class="badge-nav-info">
                    <div class="badge-nav-title">新的关注</div>
                    <span class="nav-badge" style="background-color: rgba(16, 185, 129, 0.1); color: var(--success);">5</span>
                </div>
            </a>
            <a href="#" class="badge-nav-item">
                <div class="badge-nav-icon" style="background-color: rgba(245, 158, 11, 0.1); color: var(--warning);">
                    <i class="fas fa-gift"></i>
                </div>
                <div class="badge-nav-info">
                    <div class="badge-nav-title">我的礼物</div>
                    <span class="nav-badge" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">3</span>
                </div>
            </a>
        </div>
        
        <!-- 带开关的导航 -->
        <h3 class="nav-category">
            <i class="fas fa-toggle-on"></i>
            带开关的设置导航
        </h3>
        <div class="toggle-nav-list">
            <div class="toggle-nav-item">
                <div class="toggle-nav-icon" style="background-color: rgba(59, 130, 246, 0.1); color: var(--primary);">
                    <i class="fas fa-bell"></i>
                </div>
                <div class="toggle-nav-title">通知提醒</div>
                <label class="custom-toggle">
                    <input type="checkbox" checked>
                    <span class="toggle-slider"></span>
                </label>
            </div>
            <div class="toggle-nav-item">
                <div class="toggle-nav-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                    <i class="fas fa-lock"></i>
                </div>
                <div class="toggle-nav-title">隐私模式</div>
                <label class="custom-toggle">
                    <input type="checkbox">
                    <span class="toggle-slider"></span>
                </label>
            </div>
            <div class="toggle-nav-item">
                <div class="toggle-nav-icon" style="background-color: rgba(16, 185, 129, 0.1); color: var(--success);">
                    <i class="fas fa-wifi"></i>
                </div>
                <div class="toggle-nav-title">仅WiFi加载图片</div>
                <label class="custom-toggle">
                    <input type="checkbox" checked>
                    <span class="toggle-slider"></span>
                </label>
            </div>
            <div class="toggle-nav-item">
                <div class="toggle-nav-icon" style="background-color: rgba(245, 158, 11, 0.1); color: var(--warning);">
                    <i class="fas fa-comment"></i>
                </div>
                <div class="toggle-nav-title">陌生人消息</div>
                <label class="custom-toggle">
                    <input type="checkbox">
                    <span class="toggle-slider"></span>
                </label>
            </div>
        </div>
        
        <!-- 分类折叠导航 -->
        <h3 class="nav-category">
            <i class="fas fa-folder-open"></i>
            分类折叠导航
        </h3>
        <div class="collapsible-nav">
            <div class="collapsible-nav-header" id="communityNavHeader">
                <div class="collapsible-nav-title">
                    <div class="collapsible-nav-icon" style="background-color: rgba(59, 130, 246, 0.1); color: var(--primary);">
                        <i class="fas fa-users"></i>
                    </div>
                    兴趣社群
                </div>
                <i class="fas fa-chevron-down collapsible-nav-arrow" id="communityNavArrow"></i>
            </div>
            <div class="collapsible-nav-content" id="communityNavContent">
                <div class="collapsible-nav-items">
                    <a href="#" class="collapsible-nav-item" style="color: var(--primary);">
                        <i class="fas fa-camera"></i>
                        <span>摄影爱好者</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--secondary);">
                        <i class="fas fa-music"></i>
                        <span>音乐分享</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--success);">
                        <i class="fas fa-utensils"></i>
                        <span>美食探店</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--warning);">
                        <i class="fas fa-book"></i>
                        <span>读书交流</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--danger);">
                        <i class="fas fa-hiking"></i>
                        <span>户外旅行</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--primary-dark);">
                        <i class="fas fa-code"></i>
                        <span>程序员社区</span>
                    </a>
                </div>
            </div>
            
            <div class="collapsible-nav-header" id="serviceNavHeader">
                <div class="collapsible-nav-title">
                    <div class="collapsible-nav-icon" style="background-color: rgba(139, 92, 246, 0.1); color: var(--secondary);">
                        <i class="fas fa-concierge-bell"></i>
                    </div>
                    服务中心
                </div>
                <i class="fas fa-chevron-down collapsible-nav-arrow" id="serviceNavArrow"></i>
            </div>
            <div class="collapsible-nav-content" id="serviceNavContent">
                <div class="collapsible-nav-items">
                    <a href="#" class="collapsible-nav-item" style="color: var(--primary);">
                        <i class="fas fa-question-circle"></i>
                        <span>帮助中心</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--secondary);">
                        <i class="fas fa-headphones"></i>
                        <span>客服中心</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--success);">
                        <i class="fas fa-file-alt"></i>
                        <span>用户协议</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--warning);">
                        <i class="fas fa-shield-alt"></i>
                        <span>隐私政策</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--danger);">
                        <i class="fas fa-flag"></i>
                        <span>举报中心</span>
                    </a>
                    <a href="#" class="collapsible-nav-item" style="color: var(--primary-dark);">
                        <i class="fas fa-lightbulb"></i>
                        <span>意见反馈</span>
                    </a>
                </div>
            </div>
        </div>
        
        <!-- 水平滚动导航 -->
        <h3 class="nav-category">
            <i class="fas fa-stream"></i>
            水平滚动导航
        </h3>
        <div class="scroll-nav-container">
            <div class="scroll-nav-wrapper">
                <div class="scroll-nav">
                    <a href="#" class="scroll-nav-item active">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-home"></i>
                        </div>
                        <div class="scroll-nav-title">首页</div>
                    </a>
                    <a href="#" class="scroll-nav-item">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-compass"></i>
                        </div>
                        <div class="scroll-nav-title">发现</div>
                    </a>
                    <a href="#" class="scroll-nav-item">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-star"></i>
                        </div>
                        <div class="scroll-nav-title">精选</div>
                    </a>
                    <a href="#" class="scroll-nav-item">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-fire"></i>
                        </div>
                        <div class="scroll-nav-title">热门</div>
                    </a>
                    <a href="#" class="scroll-nav-item">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-video"></i>
                        </div>
                        <div class="scroll-nav-title">视频</div>
                    </a>
                    <a href="#" class="scroll-nav-item">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-newspaper"></i>
                        </div>
                        <div class="scroll-nav-title">资讯</div>
                    </a>
                    <a href="#" class="scroll-nav-item">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-trophy"></i>
                        </div>
                        <div class="scroll-nav-title">活动</div>
                    </a>
                    <a href="#" class="scroll-nav-item">
                        <div class="scroll-nav-icon">
                            <i class="fas fa-shopping-bag"></i>
                        </div>
                        <div class="scroll-nav-title">好物</div>
                    </a>
                </div>
            </div>
        </div>
    </div>
    
    <!-- 底部导航 -->
    <div class="bottom-nav">
        <a href="#" class="nav-item active">
            <i class="fas fa-home nav-icon"></i>
            <span>首页</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-compass nav-icon"></i>
            <span>发现</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-plus-circle nav-icon"></i>
            <span>发布</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-bell nav-icon"></i>
            <span>通知</span>
        </a>
        <a href="#" class="nav-item">
            <i class="fas fa-user nav-icon"></i>
            <span>我的</span>
        </a>
    </div>
    
    <!-- 提示消息元素 -->
    <div class="toast" id="toast"></div>
    
    <!-- Bootstrap JS Bundle with Popper -->
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/js/bootstrap.bundle.min.js"></script>
    
    <script>
        // 折叠导航功能
        function setupCollapsibleNav(headerId, contentId, arrowId) {
            const header = document.getElementById(headerId);
            const content = document.getElementById(contentId);
            const arrow = document.getElementById(arrowId);
            
            header.addEventListener('click', function() {
                const isOpen = content.classList.contains('open');
                
                if (isOpen) {
                    content.classList.remove('open');
                    arrow.classList.remove('open');
                    content.style.maxHeight = null;
                } else {
                    content.classList.add('open');
                    arrow.classList.add('open');
                    content.style.maxHeight = content.scrollHeight + "px";
                }
            });
        }
        
        // 初始化折叠导航
        setupCollapsibleNav('communityNavHeader', 'communityNavContent', 'communityNavArrow');
        setupCollapsibleNav('serviceNavHeader', 'serviceNavContent', 'serviceNavArrow');
        
        // 默认打开第一个折叠面板
        document.addEventListener('DOMContentLoaded', function() {
            const firstContent = document.getElementById('communityNavContent');
            const firstArrow = document.getElementById('communityNavArrow');
            
            firstContent.classList.add('open');
            firstArrow.classList.add('open');
            firstContent.style.maxHeight = firstContent.scrollHeight + "px";
        });
        
        // 水平滚动导航项点击
        document.querySelectorAll('.scroll-nav-item').forEach(item => {
            item.addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelectorAll('.scroll-nav-item').forEach(i => i.classList.remove('active'));
                this.classList.add('active');
                showToast(`已切换到${this.querySelector('.scroll-nav-title').textContent}`);
            });
        });
        
        // 开关切换事件
        document.querySelectorAll('.custom-toggle input').forEach(toggle => {
            toggle.addEventListener('change', function() {
                const title = this.closest('.toggle-nav-item').querySelector('.toggle-nav-title').textContent;
                if (this.checked) {
                    showToast(`${title}已开启`);
                } else {
                    showToast(`${title}已关闭`);
                }
            });
        });
        
        // 导航项点击事件
        document.querySelectorAll('.basic-nav-item, .grid-nav-item, .badge-nav-item, .collapsible-nav-item').forEach(item => {
            item.addEventListener('click', function(e) {
                e.preventDefault();
                let title;
                
                if (this.classList.contains('basic-nav-item')) {
                    title = this.querySelector('.basic-nav-title').textContent;
                } else if (this.classList.contains('grid-nav-item')) {
                    title = this.querySelector('.grid-nav-title').textContent;
                } else if (this.classList.contains('badge-nav-item')) {
                    title = this.querySelector('.badge-nav-title').textContent;
                } else if (this.classList.contains('collapsible-nav-item')) {
                    title = this.querySelector('span').textContent;
                }
                
                showToast(`正在进入${title}`);
            });
        });
        
        // 底部导航点击
        document.querySelectorAll('.nav-item').forEach(item => {
            item.addEventListener('click', function(e) {
                e.preventDefault();
                document.querySelectorAll('.nav-item').forEach(i => i.classList.remove('active'));
                this.classList.add('active');
                const title = this.querySelector('span').textContent;
                showToast(`已切换到${title}`);
            });
        });
        
        // 顶部按钮事件
        document.getElementById('backBtn').addEventListener('click', function() {
            history.back();
        });
        
        document.getElementById('settingsBtn').addEventListener('click', function() {
            showToast('设置页面');
        });
        
        // 提示消息功能
        function showToast(message) {
            const toast = document.getElementById('toast');
            toast.textContent = message;
            toast.classList.add('show');
            
            setTimeout(() => {
                toast.classList.remove('show');
            }, 2000);
        }
    </script>
</body>
</html>

